import { BaseTableConfig } from '@/components/base-ui/base-table/type';
import { generateRandomId } from '@/utils';

export const tableConfig: BaseTableConfig = {
    items: [
        {
            modelKey: 'materialCode',

            columnProps: {
                label: '物料编码',
                width: 180
            }
        },
        {
            modelKey: 'materialName',
            columnProps: {
                label: '物料名称',
                width: 220
            }
        },
        {
            slotName: 'finishedProductRate',
            modelKey: 'finishedProductRate',
            columnProps: {
                label: '成品率',
                width: 140
            },
            validProps: {
                id: generateRandomId(),
                required: true
            }
        },
        {
            slotName: 'quasiDeliveryRate',
            modelKey: 'quasiDeliveryRate',
            columnProps: {
                label: '准交率',
                width: 140
            },
            validProps: {
                id: generateRandomId(),
                required: true
            }
        }
    ],
    unSelection: true,
    modalActionShow: true
};
